import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);
// 引入小仓库
import home from './home';
import search from './search';
import detail from './detail';
import shopCart from './shopCart'
import register from './register';
import trade from './trade'
// 对外暴露一个Store的实例对象
export default new Vuex.Store({
    // 实现vuex仓库模块式开发存储数据
    modules:{
        home,
        search,
        detail,
        shopCart,
        register,
        trade,
    }
})